package com.yoo.ons.function.me.like

import android.annotation.SuppressLint
import android.os.Build
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import androidx.recyclerview.widget.RecyclerView
import com.yoo.module_base.utils.setOnClickCallback
import com.yoo.ons.base.adpater.AdapterCallback
import com.yoo.ons.databinding.LayoutLikeListEmptyBinding
import com.yoo.ons.model.WlmSubListModel

class MyLikeListEmptyViewHolder(
    parent: ViewGroup,
    callback: AdapterCallback,
    private val binding: LayoutLikeListEmptyBinding = LayoutLikeListEmptyBinding.inflate(
        LayoutInflater.from(parent.context),
        parent,
        false,
    )
) : RecyclerView.ViewHolder(binding.root) {

    init {
        binding.txtLayoutLikeListEmptyBtn.setOnClickCallback {
            callback.invoke(MY_LIKE_LIST_ITEM_EMPTY,itemView)
        }
    }

    @SuppressLint("SetTextI18n")
    @RequiresApi(Build.VERSION_CODES.S)
    fun bind(item: WlmSubListModel, position: Int) {
        itemView.tag = item

    }

}